import React from "react";

const searchReducer = (state, action) => {
    const {type, payload} = action
    if (type) {
        return {
            ...state,
            ...payload
        }
    }else{
        return state
    }
}
export default searchReducer